/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import java.sql.Blob;
import java.util.Date;

/**
 *
 * @author USER
 */
public class Contendor implements Serializable {

    private Double codtor;
    private Double codcon;
    private String nomcon;
    private String tipcon;
    private String imacon;
    private String texcon;
    private Double canele;
    private String fecreg;
    private String usureg;

    public Contendor() {
    }

    public Double getCodtor() {
        return codtor;
    }

    public void setCodtor(Double codtor) {
        this.codtor = codtor;
    }

    public Double getCodcon() {
        return codcon;
    }

    public void setCodcon(Double codcon) {
        this.codcon = codcon;
    }

    public String getNomcon() {
        return nomcon;
    }

    public void setNomcon(String nomcon) {
        this.nomcon = nomcon;
    }

    public String getTipcon() {
        return tipcon;
    }

    public void setTipcon(String tipcon) {
        this.tipcon = tipcon;
    }

    public String getImacon() {
        return imacon;
    }

    public void setImacon(String imacon) {
        this.imacon = imacon;
    }

    public String getTexcon() {
        return texcon;
    }

    public void setTexcon(String texcon) {
        this.texcon = texcon;
    }

    public Double getCanele() {
        return canele;
    }

    public void setCanele(Double canele) {
        this.canele = canele;
    }

    public String getFecreg() {
        return fecreg;
    }

    public void setFecreg(String fecreg) {
        if (fecreg != null) {
            if (!fecreg.equals("")) {
                if (fecreg.substring(4, 5).equals("-")) {
                    fecreg = fecreg.substring(8, 10) + "/" + fecreg.substring(5, 7) + "/" + fecreg.substring(0, 4);
                }
            }
        }
        this.fecreg = fecreg;
    }

    public String getUsureg() {
        return usureg;
    }

    public void setUsureg(String usureg) {
        this.usureg = usureg;
    }
}
